package com.example.hotel_lxy.application;


import android.content.Context;

import com.alibaba.android.arouter.launcher.ARouter;
import com.example.hotel_lxy.sql.UserSQLiteOpenHelper;
import com.ysxsoft.common_base.base.BaseApplication;


/**
 * Created by Administrator on 2018/3/1 0001.
 */

public class EApplication extends BaseApplication {
    private static EApplication instance;
    public static Context context;

    @Override
    protected void handle() {
        super.handle();

        context = super.getApplicationContext();
    }

    public static EApplication getInstance() {
        return instance;
    }

    @Override
    public void onCreate() {
        super.onCreate();
        ARouter.init(EApplication.this);
        initSqlite();

    }

    /**
     * 初始化数据库
     */
    private void initSqlite() {
        UserSQLiteOpenHelper openHelper = new UserSQLiteOpenHelper(this,"Blcs", null, 1);
    }


}
